/**
 * 
 */
package com.test;

/**
 * @author LvSaiHui {gurnfe@163.com}
 * @version 1.0 <br>
 *          Copyright (C), 2007-2008, ZJUT <br>
 *          This program is protected by copyright laws. <br>
 *          Program Name: Static.java <br>
 *          Date: 2009-3-10 <br>
 *          Description:
 */
public class Static {
	
	static int x, y;
	static {
		int x = 5;
	}
	
	
	public static void main(String[] args) {
		System.out.println(x);
		x--;
		myMethod();
		System.out.println(x + y + ++x);
	}

	public static void myMethod() {
		y = x++ + ++x;
	}
}
